package com.boss.service.impl;

import com.boss.entity.JobOffers;
import com.boss.mapper.JobOffersMapper;
import com.boss.service.JobOffersService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class JobOffersServiceImpl  implements JobOffersService {
    @Autowired
    private JobOffersMapper jobOffersMapper;
//添加一个职位
    @Override
    public Integer addJobOffers(JobOffers jobOffers) {

        return jobOffersMapper.addJobOffers(jobOffers);
    }

    @Override
    public List<JobOffers> getJobOffers() {
        return jobOffersMapper.getJobOffers();
    }

    @Override
    public Boolean updJobOffers(JobOffers jobOffers) {
        if (jobOffersMapper.updJobOffers(jobOffers)==1){
            return true;
        }
        return false;
    }

    @Override
    public boolean auditFailure(JobOffers jobOffers) {
        if (jobOffersMapper.auditFailure(jobOffers)==1){
            return true;
        }
        return false;
    }
}
